apiready = function() {
	var fid = api.pageParam;
	console.log(fid);
	api.openFrameGroup({
		name: 'classDetails',
		index: 0,
		vScrollBarEnabled: false,
		rect: {
			x: 0,
			y: 75,
			w: 'auto',
			h: 'auto',
		},
		frames: [{
				name: 'weekPlan',
				url: 'weekPlan.html',
				pageParam: {
					sid: fid.sid
				}
			},
			{
				name: 'courseIntroduction',
				url: 'courseIntroduction.html',
				pageParam: {
					sid: fid.sid
				}
			}
		]
	}, function(ret, err) {
		var index = ret.index;
		console.log(index);
		$(".title span").removeClass("active");
		$(".title span:eq(" + index + ")").addClass("active");
	});
};
//本周安排
function setWeek() {
	api.setFrameGroupIndex({
		name: 'classDetails',
		index: 0,
	});
}
//课程介绍
function setIntroduction() {
	api.setFrameGroupIndex({
		name: 'classDetails',
		index: 1,
	});
}
//close
function closeWin() {
//	api.openWin({
//		name: 'allClass',
//		url: 'allClass.html',
//		reload: true
//	});
	api.closeWin();
}